package cn.silver.module.oss.controller;

import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.oss.bean.RecycleBean;
import cn.silver.module.oss.domain.OssRecycle;
import cn.silver.module.oss.param.RecycleParam;
import cn.silver.module.oss.service.IOssRecycleService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/oss/recycle")
@Tag(name = "对象存储管理-文件回收站管理")
public class OssRecycleController extends BaseController<IOssRecycleService, OssRecycle, RecycleParam, RecycleBean> {

    @Override
    @Resource
    public void setBaseService(IOssRecycleService baseService) {
        this.baseService = baseService;
        this.setCode("oss_recycle");
        this.setPermission("oss:catalog");
        this.setTitle("对象存储管理-文件信息管理");
    }
}
